﻿@model Pager<SysCompany>
@{
	ViewBag.Title = "公司信息列表";
}
<div class="ui-widget-header">
	<div style="padding: 5px 10px; font-size: 120%">
		@ViewBag.Title
	</div>
</div>
@using (Ajax.BeginForm(null,new AjaxOptions { UpdateTargetId = "Main" }))
{
	<div class="ui-cell">
		<label>公司编号</label>
		@Html.TextBox("SysNo",Request["SysNo"])
	</div>
	<div class="ui-cell">
		<label>公司名称</label>
		@Html.TextBox("Caption",Request["Caption"])
	</div>
	<div class="ui-cell">
		<label>公司地址</label>
		@Html.TextBox("Address", Request["Address"])
	</div>
	<div class="ui-cell">
		<label>联系人</label>
		@Html.TextBox("Contact",Request["Contact"])
	</div>
	<div class="ui-cell">
		<label>电话</label>
		@Html.TextBox("Telephone",Request["Telephone"])
	</div>
	<div class="ui-cell">
		<label>其他</label>
		@Html.TextBox("Description",Request["Description"])
	</div>
	<div class="ui-cell">
		<label>产品/服务</label>
		@Html.TextBox("Service",Request["Service"])
	</div>
	<div class="ui-cell">
		<label>资本结构</label>
		@Html.TextBox("Structure",Request["Structure"])
	</div>
	<div class="ui-cell-bar">
		<input class="btn" type="submit" value="查找" />
		@Ajax.ActionLink("添加", "Edit", null, new AjaxOptions { UpdateTargetId = "Main" }, new { @class = "btn" })
	</div>
}
<div class="ui-data">
	<table>
		<thead>
			<tr>
				<td colspan="6">@Html.Partial("Pager", Model)</td>
			</tr>
			<tr>
				<th>编号</th>
				<th>公司名称</th>
				<th>公司地址</th>
				<th>公司网站</th>
				<th>登记日期</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var row in Model)
   {
			<tr>
				<td>@Html.DisplayFor(p=>row.SysNo)</td>
				<td>@Html.DisplayFor(p=>row.Caption)</td>
				<td>@Html.DisplayFor(p=>row.Address)</td>
				<td>@Html.DisplayFor(p=>row.Web)</td>
				<td>@string.Format("{0:yyyy-MM-dd}",row.CreateDate)</td>
				<td>
					@Ajax.ActionLink("[修改]", "Edit", new { ID = row.ID }, new AjaxOptions { UpdateTargetId = "Main" })
					@Html.ActionLink("[打印]", "Print", new { ID = row.ID, auto = true }, new { @class = "print" })
				</td>
			</tr>
   }
			<tr>
				<td colspan="6">@Html.Partial("Pager", Model)</td>
			</tr>
		</tbody>
	</table>
</div>